Skip to content

Native IaC: stack the relations and verbs table on phones - #332

Open
jeffreyaven wants to merge 1 commit into
mainfrom
fix/native-iac-mobile-table
Open

jeffreyaven wants to merge 1 commit into
mainfrom
fix/native-iac-mobile-table

Conversation

@jeffreyaven

Copy link
Copy Markdown
Member

On phones the first table on /getting-started/native-iac ("Relations and verbs") gave most of its width to the statement column, whose relation names (stackql_preview.iac.ledger) cannot wrap. The effect column was left a few words wide, so each row ran to seven or more lines and the table scrolled sideways.

Below 577px the table now stacks each row, with the statement above its effect and both at full width. At 577px and wider the two-column table fits without scrolling, so tablet and desktop are unchanged.

  • src/css/global.css: a reusable table-stack-mobile class, under "Table formatting". To use it on another table, wrap the table in <div className="table-stack-mobile"> with blank lines inside the tags.
  • docs/getting-started/native-iac.md and the 13 translations: the table is wrapped in that class. All translations pass yarn i18n:verify and are marked; yarn i18n:status --check is clean.

Checked in a local build of all 14 locales, in headless Chrome at 390, 576, 577, 768 and 1280px, in en, ar and zh-hans:

  • Up to 576px the table stacks, with no sideways scroll on the table or the page.
  • From 577px the two-column table shows as before and fits without scrolling.
  • Arabic stacks right to left, with the code still reading left to right.
  • Dark mode was checked at 390px in English.
  • The .md companions keep the plain markdown table without the wrapper.

🤖 Generated with Claude Code

On a 390px screen the statement column (long unbreakable relation names)
took most of the width, leaving the effect column a few words per line
and the table scrolling sideways. Below 577px the table now stacks each
row, statement above effect, both full width. Tablet and desktop are
unchanged.

The rule is a reusable class, table-stack-mobile, in global.css; the
table is wrapped in it in English and all 13 translations (verified and
marked). The .md companions drop the wrapper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for stackql-io ready!

Name Link
🔨 Latest commit fc87840
🔍 Latest deploy log https://app.netlify.com/projects/stackql-io/deploys/6b0bba8fa9f61a6ff8d8f304
😎 Deploy Preview https://deploy-preview-332--stackql-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant